﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SuperJoe.Framework.Core.Exceptions
{
    public static class ThrowHelper
    {
        public static UserFriendlyException ThrowFriendlyException(string friendlyMessage, string message = null, Exception ex = null)
        {
            throw new UserFriendlyException(message, ex) { FriendlyMessage = friendlyMessage };
        }

        public static SuperJoeException ThrowSuperJoeException(string message, Exception innerException = null)
        {
            throw new SuperJoeException(message, innerException);
        }
    }
}
